package com.bw.test_reflect_annotation;

import java.util.List;

/**
 * @author ytx
 * @date 2025-10-31 08:12
 * @description
 */
public class Student {
    private int age;
    private String name;

    private List<String> hobby; //参数化类型
    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }
    public Student(int  age){
        this.age = age;
    }
    public void show(){
        System.out.println("age:"+age+" name:"+name);
    }
    public String show(String name){
        System.out.println("name:"+name);
        return "hahah";
    }
}
